import { get } from "../utils/request";

/**
 * 获取商品信息
 * @param page
 * @param category
 * @returns
 */
// export const loadProductsAPI = (page = 1, category = "") =>
//   get("/api/v1/products", { page, category });

/**
 * 根据id获取详情
 * @param id
 * @returns
 */
export const loadProductById = (id: number) => get("/api/v1/products/" + id);
